home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / captio1a / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-05-10  |  1.9 KB  |  70 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    BackColor       =   &H80000007&
  4.    Caption         =   "dyr_workshop"
  5.    ClientHeight    =   885
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   2775
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   885
  11.    ScaleWidth      =   2775
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin VB.Timer Timer2 
  14.       Interval        =   1000
  15.       Left            =   960
  16.       Top             =   480
  17.    End
  18.    Begin VB.Timer Timer1 
  19.       Interval        =   1
  20.       Left            =   120
  21.       Top             =   480
  22.    End
  23.    Begin VB.Label Label1 
  24.       Alignment       =   2  'Center
  25.       BackColor       =   &H00000000&
  26.       Caption         =   "Harlow"
  27.       BeginProperty Font 
  28.          Name            =   "MS Sans Serif"
  29.          Size            =   24
  30.          Charset         =   0
  31.          Weight          =   400
  32.          Underline       =   0   'False
  33.          Italic          =   0   'False
  34.          Strikethrough   =   0   'False
  35.       EndProperty
  36.       Height          =   615
  37.       Left            =   120
  38.       TabIndex        =   0
  39.       Top             =   120
  40.       Width           =   2535
  41.    End
  42. Attribute VB_Name = "Form1"
  43. Attribute VB_GlobalNameSpace = False
  44. Attribute VB_Creatable = False
  45. Attribute VB_PredeclaredId = True
  46. Attribute VB_Exposed = False
  47. Dim X As Integer, s As Integer
  48. Dim max As Boolean
  49. Private Sub Timer1_Timer()
  50.     If max = False And X <= 255 Then
  51.         X = X + 3
  52.     ElseIf max = True And X > 0 Then
  53.         X = X - 3
  54.     End If
  55.     If X = 255 Then
  56.         max = True
  57.     ElseIf X = 0 Then
  58.         max = False
  59.     End If
  60.     Label1.ForeColor = RGB(0, X, 0)
  61. End Sub
  62. Private Sub Timer2_Timer()
  63.     s = s + 1
  64.     Form1.Caption = Mid("dyr_workshop", 1, s)
  65.     If s = 13 Then
  66.         Form1.Caption = ""
  67.         s = 0
  68.     End If
  69. End Sub
  70.